package com.mobilereports.sort;

import java.util.Comparator;

import com.mobilereports.model.Sample;

public class NamesAscendingComparator implements Comparator<Sample>
{
	public static String SORT_ORDER_NAME = "Names asc.";
	
	@Override
	public int compare(Sample object1, Sample object2)
	{
		return object1.getLabel().compareTo(object2.getLabel());
	}

	@Override
	public String toString()
	{
		return SORT_ORDER_NAME;
	}
}
